import './style.css'
import VueAMap from 'vue-amap';

import { createApp } from 'vue'
import { createPinia } from 'pinia'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import echarts from "./0.ts";

import ElementPlus from 'element-plus'
import locale from "element-plus/es/locale/lang/zh-cn";
import 'element-plus/dist/index.css'
// import locale from 'element-plus/lib/locale/lang/zh-cn'
import 'echarts'
import ECharts from 'vue-echarts'
import App from './App.vue'
import router from './router'
// import { TouchPullRefresh } from './unit/xialashuaxin.js';
// 挂载到vue实例中
const app = createApp(App)
app.component('v-chart', ECharts)

app.use(ElementPlus, { locale })
// app.config.globalProperties.$echarts = echarts;
// app.prototype.$echarts = echarts
app.use(createPinia())
app.use(router)
// app.use(TouchPullRefresh)
// app.use(ElementPlus)
app.use(VueAMap);

app.mount('#app')
